home *** CD-ROM | disk | FTP | other *** search
- #include <alloc.h> // The example of simple graphics editor interface
- #include <iostream.h> // creation. The program shows linemenu with
- #include <conio.h> // Paint Brush like choices: File, Edit, View etc.,
- // Help system explains the behavior of package
-
- #include "kh_draw.h"
-
- extern unsigned _stklen = 16000;
-
- void main()
- {
- if(!init_KNOW_HOW(DETECT, 1))
- return;
- ///////////////////////////
- rect r_help(5, 5, 70, 25);
- help_object = new HypertextView(r_help, "draw.hlp", "_help.pcy",
- MOVE | RESIZE,
- pScreenSet->sub_interval,
- SHOW_BORDER, 10, "HOTKEY",
- BLUE, YELLOW, 56);
-
- KH_Draw* kh_draw = new KH_Draw("kh_draw.pcy", "work.buf");
-
- setfillstyle(SOLID_FILL, getmaxcolor());
- bar(0, 0, getmaxx(), getmaxy());
-
- kh_draw->show();
-
- kh_draw->exe(); // process the program
-
- delete help_object;
- delete kh_draw;
-
- close_KNOW_HOW();
- closegraph();
- cout << "\n";
- cout << "\n";
- cout << "HOTKEY Copyright (C) 1992 - 1994 Stepan S Vartanov\n";
- cout << "\n";
- cout << "This program is SHAREWARE. To get supprot and discount for next\n";
- cout << "versions, you should REGISTER. Registration fee is 30$ USA. \n\n";
- cout << "Send money to: \n";
- cout << " P.O.Box 34041, Scotia Square RPO, Halifax, N.S.,\n";
- cout << " Canada. B3J 3S1.\n";
- cout << "and add registration card:\n";
- cout << " Full name; Address or (better) E.mail; Program name and version.\n\n";
- cout << "Support: ad398@cfn.cs.dal.ca, Stepan Vartanov.\n";
-
- }
-
-